package cn.edu.whu.irlab.service.impl;

import cn.edu.whu.irlab.dao.GroupClsMapper;
import cn.edu.whu.irlab.model.GroupCls;
import cn.edu.whu.irlab.service.GroupClsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Roger on 2016/7/30.
 */
@Service
public class GroupClsServiceImpl implements GroupClsService {

    @Autowired
    private GroupClsMapper groupClsMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return groupClsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(GroupCls record) {
        return groupClsMapper.insert(record);
    }

    @Override
    public int insertSelective(GroupCls record) {
        return groupClsMapper.insertSelective(record);
    }

    @Override
    public GroupCls selectByPrimaryKey(Integer id) {
        return groupClsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(GroupCls record) {
        return groupClsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(GroupCls record) {
        return groupClsMapper.updateByPrimaryKey(record);
    }
}
